﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAO.Common
{
    public class Cache
    {
        static Cache()
        {
            _allCustomers = new Lazy<List<CustomerDataEntity>>(() => new CustomerDataMapper().GetAllCustomers());     
        }

        static Lazy<List<CustomerDataEntity>> _allCustomers;

        public static List<CustomerDataEntity> AllCustomers { get { return _allCustomers.Value; } }
    }
}
